package com.example.a2032.entity;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import java.util.List;

public class ImResultData {


    private List<GroupsBean> groups;
    private List<BindersBean> binders;

    public List<GroupsBean> getGroups() {
        return groups;
    }

    public void setGroups(List<GroupsBean> groups) {
        this.groups = groups;
    }

    public List<BindersBean> getBinders() {
        return binders;
    }

    public void setBinders(List<BindersBean> binders) {
        this.binders = binders;
    }

    @Entity
    public static class GroupsBean {
        /**
         * im : 158967550509062
         * name : 我爱我家
         */
        @PrimaryKey
        @NonNull
        private String im;
        private String name;

        public String getIm() {
            return im;
        }

        public void setIm(String im) {
            this.im = im;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
    @Entity
    public static class BindersBean {
        /**
         * userId : 109766
         * kinship : 5
         * im : 109766
         */
        @PrimaryKey
        @NonNull
        private String userId;
        private int kinship;
        private String im;

        public String getUserId() {
            return userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public int getKinship() {
            return kinship;
        }

        public void setKinship(int kinship) {
            this.kinship = kinship;
        }

        public String getIm() {
            return im;
        }

        public void setIm(String im) {
            this.im = im;
        }
    }
}
